package com.nf.action;

import com.nf.service.WeatherService;
import com.nf.service.WeatherServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nf.entity.WeatherMessage;
import com.nf.entity.ResponseData;
import com.nf.entity.WeatherOtherInfo;

@Controller
public class WeatherAction {

    private WeatherService weatherService = new WeatherServiceImpl();

	public String view(){
		return "abc";
	}

	@ResponseBody
	@RequestMapping("/json.shtml")
	public WeatherMessage showJson(){
		return weatherService.getMessage();
	}

}
